from ppgnss import gnss_time
from ppgnss import gnss_geodesy

yr, mon, dy = gnss_time.doy2ymd(2019, 36)
print(yr, mon, dy)

lat = 43.5
lon = 121.3
x, y, z = gnss_geodesy.blh2xyz(lat, lon, 0)
print(x, y, z)

yr, mon, dy = 2020, 3, 15
year, doy = gnss_time.ymd2doy(yr, mon, dy)
print(yr, mon, dy, doy)